package com.smart.sso.server.controller;

import javax.servlet.http.HttpServletRequest;

import java.util.Map;

import com.smart.mvc.controller.BaseController;
import com.smart.mvc.util.RequestUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Api(tags = "首页")
@Controller
@RequestMapping("/index")
public class IndexController extends BaseController{
	@ApiOperation("首页")
	@ResponseBody
	@RequestMapping(produces = {"text/plain;charset=utf-8"})
	public Map<String,Object> index(HttpServletRequest request) {
		//String token = CookieUtils.getCookie(request, "token");

		return RequestUtil.debugMap(request);
	}

}